<<<<<<< HEAD
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/24
 * Time: 15:41
 */

namespace app\index\controller;


class Code extends Auth
{
    public function index()
    {
        $username = session('Auth.Username');
        if($username) {
            //生成二维码
            $url='http://'.$_SERVER['HTTP_HOST'].'/reg.html?recode=' . $username;
            $this->assign('qrcode',CreateQrCode($url, $username));
            $this->assign('myurl',$url);
            return $this->fetch('mycode');
        }
    }
=======
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/24
 * Time: 15:41
 */

namespace app\index\controller;


class Code extends Auth
{
    public function index()
    {
        $username = session('Auth.Username');
        if($username) {
            //生成二维码
            $url='http://'.$_SERVER['HTTP_HOST'].'/reg.html?recode=' . $username;
            $this->assign('qrcode',CreateQrCode($url, $username));
            $this->assign('myurl',$url);
            return $this->fetch('mycode');
        }
    }
>>>>>>> 93c40d8086b7a8d5a9aa3548fdc8eb06a4272cf7
}